<?php
    require_once '../connect.php';
    //�˴���$name�ĳ�����ɾ����name
    $title=$_GET['title'];
    $sql="DELETE FROM library WHERE title='$title'";
    if(mysqli_query($con, $sql))
    {
        echo "<script>alert('delete success!');</script>";
        echo "<script>window.location.href='manage.php';</script>";
    }
    
    